package users.tom.beans;

public final class Config {
	
	private final DatabaseParameters dbParameters;
	private final String frammis;
	private int frambosity;

	
	public Config(DatabaseParameters dbParameters, String frammis) {
		this.dbParameters = dbParameters;
		this.frammis = frammis;
	}
	
	public final void destroy() {
		System.out.println("**bean DESTROYED!**");
	}

	
	public final DatabaseParameters getDbParameters() {
		return dbParameters;
	}


	public final String getFrammis() {
		return frammis;
	}


	public final int getFrambosity() {
		return frambosity;
	}

	
	public final void init() {
		System.out.println("**init() called**");
	}


	public void setFrambosity(int frambosity) {
		this.frambosity = frambosity;
	}
	
	
	@Override
	public String toString() {
		return "Frambosity: " + frambosity + " Frammis: " + frammis + " DB Parameters: " + dbParameters.toString();
	}
}
